package com.bdmc.device.service;

import com.bdmc.common.core.domain.PageQuery;
import com.bdmc.common.core.mybatisplus.core.IServicePlus;
import com.bdmc.common.core.page.TableDataInfo;
import com.bdmc.device.domain.DevHealthRealtime;
import com.bdmc.device.domain.bo.DevHealthRealtimeBo;
import com.bdmc.device.domain.vo.DevHealthRealtimeVo;

import java.util.Collection;
import java.util.List;

/**
 * 手环实时健康数据Service接口
 *
 * @author bdmc
 * @date 2023-08-01
 */
public interface IDevHealthRealtimeService extends IServicePlus<DevHealthRealtime, DevHealthRealtimeVo> {
	/**
	 * 查询单个
	 * @return
	 */
	DevHealthRealtimeVo queryById(Long healthId);

	/**
	 * 查询列表
	 */
    TableDataInfo<DevHealthRealtimeVo> queryPageList(DevHealthRealtimeBo bo, PageQuery pageQuery);

	/**
	 *分页查询列表
	 */
	TableDataInfo<DevHealthRealtimeVo> mySelectPage(DevHealthRealtimeBo bo, PageQuery pageQuery);

	/**
	 * 查询列表
	 */
	List<DevHealthRealtimeVo> queryList(DevHealthRealtimeBo bo);

	/**
	 * 根据新增业务对象插入手环实时健康数据
	 * @param bo 手环实时健康数据新增业务对象
	 * @return
	 */
	Boolean insertByBo(DevHealthRealtimeBo bo);

	/**
	 * 根据编辑业务对象修改手环实时健康数据
	 * @param bo 手环实时健康数据编辑业务对象
	 * @return
	 */
	Boolean updateByBo(DevHealthRealtimeBo bo);

	/**
	 * 校验并删除数据
	 * @param ids 主键集合
	 * @param isValid 是否校验,true-删除前校验,false-不校验
	 * @return
	 */
	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

	DevHealthRealtime getByImei(String imei);
}
